#include <stdlib.h>
#include <stdio.h>

#include "../factory/simple_obj_factory.h"
#include "../enemy/enemy.h"

int main()
{
	RPG_Object* enemy0  = SIMPLE_OBJ_FACTORY<Simple_Enemey>::Create();
	RPG_Object* enemy1  = SIMPLE_OBJ_FACTORY<Simple_Enemey>::randomCreate();

	printf("%s:%s\n",enemy0->name,enemy0->description);
	printf("fire:%d,water:%d,darkness:%d,holy:%d\n"
		"hp:%d,mp:%d,attack:%d,defense:%d\n"
		"ft:%d,wt:%d,dt:%d,ht:%d\n",
		__OBJ_VALUE(enemy0,fire),
		__OBJ_VALUE(enemy0,water),
		__OBJ_VALUE(enemy0,darkness),
		__OBJ_VALUE(enemy0,holy),
		__OBJ_VALUE(enemy0,hp),
		__OBJ_VALUE(enemy0,mp),
		__OBJ_VALUE(enemy0,attack),
		__OBJ_VALUE(enemy0,defense),
		__OBJ_ATTACK(enemy0,fire),
		__OBJ_ATTACK(enemy0,water),
		__OBJ_ATTACK(enemy0,darkness),
		__OBJ_ATTACK(enemy0,holy)
		);
	printf("==============================\n");	
	printf("%s:%s\n",enemy1->name,enemy1->description);
	printf("fire:%d,water:%d,darkness:%d,holy:%d\n"
		"hp:%d,mp:%d,attack:%d,defense:%d\n"
		"ft:%d,wt:%d,dt:%d,ht:%d\n",
		__OBJ_VALUE(enemy1,fire),
		__OBJ_VALUE(enemy1,water),
		__OBJ_VALUE(enemy1,darkness),
		__OBJ_VALUE(enemy1,holy),
		__OBJ_VALUE(enemy1,hp),
		__OBJ_VALUE(enemy1,mp),
		__OBJ_VALUE(enemy1,attack),
		__OBJ_VALUE(enemy1,defense),
		__OBJ_ATTACK(enemy1,fire),
		__OBJ_ATTACK(enemy1,water),
		__OBJ_ATTACK(enemy1,darkness),
		__OBJ_ATTACK(enemy1,holy)
		);

	delete enemy0;
	delete enemy1;
	system("pause");
	return 0;
}